Faster Randomized and Deterministic Algorithms for Minimum Cycle Bases in Directed Graphs
نویسندگان
چکیده
We consider the problem of computing a minimum cycle basis in a directed graph. The input to this problem is a directed graph G whose edges have non-negative weights. A cycle in this graph is actually a cycle in the underlying undirected graph with edges traversable in both directions. A {−1,0,1} edge incidence vector is associated with each cycle: edges traversed by the cycle in the right direction get 1 and edges traversed in the opposite direction get -1. The vector space over Q generated by these vectors is the cycle space of G. A set of cycles is called a cycle basis of G if it forms a basis for this vector space. We seek a cycle basis where the sum of weights of the cycles is minimum. We present an O(m3n+m2n2 logn) algorithm for computing a minimum cycle basis in a directed graph with m edges and n vertices. The previous best algorithm had a running time of Õ(mω+1n), where ω < 2.376 is the exponent of matrix multiplication. We obtain our algorithm by using fast matrix multiplication over rings and an efficient extension of Dijkstra’s algorithm to compute a shortest cycle in G whose dot product with a function on its edge set is non-zero. We also present a simple O(m2n + mn2 logn) Monte Carlo algorithm. The problem of computing a minimum cycle basis in an undirected graph has been well-studied. In this problem a {0,1} incidence vector is associated with each cycle and the vector space over Z2 generated by these vectors is the cycle space of the graph. The fastest known algorithm for computing a minimum cycle basis in an undirected graph runs in O(m2n+mn2 logn) time and our randomized algorithm for directed graphs matches this running time. ∗Preliminary versions of the results in this paper appeared in ICALP’05 and ICALP’06 [12, 10]. †Strand Life Sciences, Bangalore, India; [email protected] ‡Indian Institute of Science, Bangalore, India; [email protected] §Max-Planck-Institut für Informatik, Saarbrücken, Germany; [email protected]
منابع مشابه
Breaking the O(m2n) Barrier for Minimum Cycle Bases
We give improved algorithms for constructing minimum directed and undirected cycle bases in graphs. For general graphs, the new algorithms are Monte Carlo and have running time O(mω), where ω is the exponent of matrix multiplication. The previous best algorithm had running time Õ(m2n). For planar graphs, the new algorithm is deterministic and has running time O(n2). The previous best algorithm ...
متن کاملA Faster Deterministic Algorithm for Minimum Cycle Bases in Directed Graphs
We consider the problem of computing a minimum cycle basis in a directed graph. The input to this problem is a directed graph G whose edges have non-negative weights. A cycle in this graph is actually a cycle in the underlying undirected graph with edges traversable in both directions. A {−1,0,1} edge incidence vector is associated with each cycle: edges traversed by the cycle in the right dire...
متن کاملMinimum Cycle Bases in Graphs Algorithms and Applications
A cycle basis of a graph is a family of cycles which spans all cycles of the graph. In an undirected graph, a cycle is simply a set of edges with respect to which every vertex has even degree. We view cycles as vectors indexed by edges. The entry for an edge is one if the edge belongs to the cycle and is zero otherwise. Addition of cycles corresponds to vector addition modulo 2 (symmetric diffe...
متن کاملFaster Exact Algorithms for Some Terminal Set Problems
Many problems on graphs can be expressed in the following language: given a graph G = (V,E) and a terminal set T ⊆ V , find a minimum size set S ⊆ V which intersects all “structures” (such as cycles or paths) passing through the vertices in T . We call this class of problems as terminal set problems. In this paper we introduce a general method to obtain faster exact exponential time algorithms ...
متن کاملMinimum Cycle and Homology Bases of Surface Embedded Graphs
We study the problems of finding a minimum cycle basis (a minimum weight set of cycles that form a basis for the cycle space) and a minimum homology basis (a minimum weight set of cycles that generates the 1-dimensional (Z2)-homology classes) of an undirected graph embedded on an orientable surface of genus g. The problems are closely related, because the minimum cycle basis of a graph contains...
متن کامل